<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
            已知前两个的值是0  1   那么以后的每一个值都是他前两位值的和
            0 1 2 3 5 8 13 21
        */

        var arr = [0, 1]
        for (var i = 2; i < 100; i++) {
            arr[i] = arr[i - 1] + arr[i - 2]
        }
        console.log(arr);
    </script>
</body>
</html>